package com.dianrui.qiyouriding.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.dianrui.qiyouriding.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class CreditScoreAdapter extends BaseAdapter {




    @Override
    public int getCount() {

        return 4;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }


    @Override
    public View getView(final int position, View convertView, ViewGroup parent) {
        ViewHolder holder;
        if (convertView != null) {
            holder = (ViewHolder) convertView.getTag();
        } else {
            convertView = LayoutInflater.from(parent.getContext()).inflate(R.layout.credit_score_list_item, null);
            holder = new ViewHolder(convertView);
            convertView.setTag(holder);
        }

        return convertView;
    }


    class ViewHolder {
        @BindView(R.id.title)
        TextView title;
        @BindView(R.id.time)
        TextView time;
        @BindView(R.id.money)
        TextView money;

        ViewHolder(View view) {
            ButterKnife.bind(this, view);
        }
    }
}
